inserting a charcater in a pyhtong string at a specific index

27

a_string = a_string[:1] + "b" + a_string[1:]

Comments

Submit
0 Comments